import java.util.concurrent.*;

public class Demo9 {
    public static void main(String[] args) {
        BlockingQueue<Runnable> blockingQueue = new LinkedBlockingQueue<>(100);
        ThreadPoolExecutor pool = new ThreadPoolExecutor(5,10,100,TimeUnit.SECONDS,blockingQueue,new ThreadPoolExecutor.DiscardPolicy());
    }
}
